CREATE OR REPLACE FUNCTION plstojavafac_fun
  (N NUMBER) 
  RETURN NUMBER
  AS
    LANGUAGE JAVA
    NAME 'Factorial.calcFactorial
      (int) return int';
/
